package com.ostrich.a2104gao5.test22

/**
 * @Author : yaotianxue
 * @Time : On 2023/10/17 13:07
 * @Description : MagicBox
 *
 * 泛型接口
 */
class MagicBox<T>(item:T) {
    val subject:T = item
}
class Boy(val name:String,val age:Int)
class Dog(val weight:Int)
